import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///广场 类别名称
class SpuareTypeTitle extends StatelessWidget{

  final String title;
  final Color colorsText;


  const SpuareTypeTitle({Key key, this.title, this.colorsText}) : super(key: key);


  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return InkWell(
      child: Container(
        padding: EdgeInsets.only(top: 10.0,bottom: 10.0),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Container(
              color: colorsText,
              margin: EdgeInsets.only(right: 10.0),
              width: ScreenUtil().setWidth(8.0),
              height: ScreenUtil().setHeight(40.0),
            ),
            Text(title)
          ],
        ),
      ),
    );
  }

}